package com.cq.hd.member.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BusinessAgentVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "经纪人id")
    private Long agentId;

    @ApiModelProperty(value = "总分销订单数")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "总分销订单金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "关联策划人数")
    private Integer relationBusinessCount;

    @ApiModelProperty(value = "累计结算分销佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalSettleCommission;

    @ApiModelProperty(value = "累计分销总佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalCommission;

    @ApiModelProperty(value = "累计提现佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalWithdrawalCommission;

    @ApiModelProperty(value = "分组id")
    private Long groupId;

    @ApiModelProperty(value = "专属佣金比例")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
